package com.li.entity;

/**
 * @Description：
 * @Author：LiDong
 * @Create：2020/10/17
 * @Version：1.0.0
 */
public class Message {

    private int id;
    private String world;

    public Message(int id, String world) {
        System.out.println("我是Message的构造函数"+"===="+id+"====="+world);
        this.id = id;
        this.world = world;
    }



    public void show(){
        System.out.println("我是Message的show()");
    }

    @Override
    public String toString() {
        return "Message{" +
                "id=" + id +
                ", world='" + world + '\'' +
                '}';
    }
}
